export function message(options) {
    if (typeof options == 'string') options = { message: options }

    options = {
        duration: 2000,
        ...options
    }

    uni.showToast({
        title: options.message,
        duration: options.duration,
        mask: true,
        icon: 'none'
    })
}

export default { message }